package com.ljw.spring.annotation.bean;

import lombok.Data;

/**
 * @FileName Car
 * @Description TODO
 * @Author ljw
 * @Date 2021/2/1 17:46
 * @Version 1.0
 */
@Data
public class Car {
    private Double length;
    public Color color;

    public Car() {
        System.out.println("car无参构造");
    }


    public Car(Double length, Color color) {
        this.length = length;
        this.color = color;
        System.out.println("创建car实例");
    }

    public void init(){
        System.out.println("car实例初始化方法");
    }

    public void destroy(){
        System.out.println("car实例销毁方法");
    }


}
